m=int(input("请输入三角行数:"))
for a in range(1,m):
    for b in range(1,m-a):
        print(" ",end=" ")
    for c in range(2*a-1):
        print('*',end=" ")
    print()
